from django.conf.urls import url
from . import views

urlpatterns = [
    # reverse('users:register')=='/register/'
    url(r'^register/', views.RegisterView.as_view(), name='register'),
    url(r'^username/(?P<username>[a-zA-Z0-9_-]{5,20})/count', views.UsernameView.as_view()),
    url(r'^mobile/(?P<mobile>1[3-9]\d{9})/count', views.MobileView.as_view()),
    url(r'^login/', views.LoginView.as_view(), name='login'),
    url(r'^logout/', views.LogoutView.as_view(), name='logout'),
    url(r'^userCenter/', views.UserCenterView.as_view(), name='userCenter')
]